package com.personnelsystem;

public class Demo21 {
    public static int sum = 500;
    public static void main(String[] args) {

        Runnable myRunnable = new Runnable(){
            public void run(){
                System.out.println("Runnable running");
            }
        };

        Thread thread = new Thread(myRunnable);
        thread.start();
    }
    public static void sell(){
        sum = sum - 1;
    }
}
